package javabase.schoolwork.day6_6;

/**
 * @author fance
 * @date 18-6-6 下午3:09
 */
class InfoImpl implements InfoII<String> {

    private String var;

    public InfoImpl(String var) {
        this.var = var;
    }

    @Override
    public String getVar() {
        return var;
    }

    public void setVar(String var) {
        this.var = var;
    }
}

public class GenDemo7 {

    public static void main(String[] args) {
        InfoII<String> demo = new InfoImpl("hello");
        System.out.println(demo.getVar());
    }
}
